| ../. | ||||
| weblib.sh | ||||
| webhelp.sh | ||||
| vx.sh | ||||
| urldecode.sh | ||||
| an urldecoder in pure bash; no external binaries used
i saw a couple of libs that actually did this by having a dictionary of common (eg %20 %22) encoded values and replacing them with their counterparts!!!!! using it is pretty straightforward:
For example you can use it to parse the decoded values of a GET request into enviroment variables:
it parses the query string into enviroment variables prefixed with HTTP_GET_ urldecode returns url decoded string from input
*mental note (update)!* more perlish would be (and i think a 4 liner....) to split on % and then match the first 2 chars of the chunks, .. a bit like in parse_getvars() above | ||||
| rand.sh | ||||
| obsoleter.sh | ||||
| funcookie.sh | ||||
| apple.sh | ||||